import request from '@/utils/request'

// 查询任务订单列表
export function listOrder(query) {
  return request({
    url: '/business/order/list',
    method: 'get',
    params: query
  })
}

// 查询任务订单详细
export function getOrder(id) {
  return request({
    url: '/business/order/' + id,
    method: 'get'
  })
}

// 导出任务订单
export function exportOrder(query) {
  return request({
    url: '/business/order/export',
    method: 'get',
    params: query
  })
}

// 快速审核任务订单
export function checkTaskOrder(data) {
  return request({
    url: '/business/order/checkTaskOrder',
    method: 'put',
    data: data
  })
}

// 撤回已审核成功订单
export function backCheckTaskOrder(data){
  return request({
    url: '/business/order/backCheckTaskOrder',
    method: 'put',
    data: data
  })
}
